const express = require('express')
var router = express.Router()
const usercontroller = require('../controller/usercontroller')

//挂载路由
router.route("/register")
  .post(usercontroller.register)

router.route("/login")
  .post(usercontroller.login)

router.route("/change_password")
  .post(usercontroller.change_password)

router.route("/person_information")
  .post(usercontroller.person_information)

router.route("/person_update")
  .post(usercontroller.person_update)

router.route("/class_student")
  .post(usercontroller.class_student)

router.route("/student_delete")
  .post(usercontroller.student_delete)

router.route("/reset_password")
  .post(usercontroller.reset_password)

router.route("/student_import")
  .post(usercontroller.student_import)

router.route("/student_create")
  .post(usercontroller.student_create)

router.route("/teacher_view")
  .get(usercontroller.teacher_view)

router.route("/teacher_create")
  .post(usercontroller.teacher_create)

router.route("/teacher_delete")
  .post(usercontroller.teacher_delete)

  module.exports = router


